package com.enlorenz.core.engine.exception;



/**
 * Engine的控制异常，启动，关闭，初始化，重启等操作引发的异常
 * @author lcb
 */
public class EngineControlException extends RuntimeException{
	private static final long serialVersionUID = -122628172812899041L;
	//引擎名称
	private String engineName;
	
	/**
	 * 创建异常控制对象
	 * @param engineName	引擎名称
	 * @param e	异常
	 */
	public EngineControlException(String engineName,Exception e){
		super(e);
		this.engineName=engineName;
	}

	public String getEngineName() {
		return engineName;
	}
	
	/**
	 * 将异常转换为标准字符串
	 */
	public String toString(){
		return "["+engineName+"]"+this.getMessage();
	}
	
}
